// 自定义的路由关系数据包
import {
  AreaChartOutlined,
  CloudServerOutlined,
  AppstoreOutlined,
} from "@ant-design/icons";
import CateEdit from "@/views/course/cate-edit";
import CateEdit1 from "@/views/course/cate-edit1";
import CateList from "@/views/course/cate-list";
import CourseList from "@/views/course/course-list";
import Dashbord from "@/views/dashbord";
import Role from "@/views/system/role";
import User from "@/views/system/user";
import CoursePub from "@/views/course/course-pub";
import Setting from "@/views/setting";

export const mainRoutes = [
  {
    key: "/dashbord",
    element: <Dashbord />,
    label: "数据可视化",
    icon: <AreaChartOutlined />,
  },
  {
    key: "/course",
    label: "课程管理",
    icon: <CloudServerOutlined />,
    children: [
      {
        key: "/course/category/list",
        element: <CateList />,
        label: "课程分类",
      },
      {
        key: "/course/category/edit",
        element: <CateEdit />,
        label: "分类编辑",
      },
      {
        key: "/course/category/edit1/:id",
        element: <CateEdit1 />,
        label: "动态路由",
      },
      {
        key: "/course/list",
        element: <CourseList />,
        label: "课程列表",
      },
      {
        key: "/course/pub",
        element: <CoursePub />,
        label: "课程发布",
      },
    ],
  },

  {
    key: "/system",
    label: "系统管理",
    icon: <AppstoreOutlined />,
    children: [
      {
        key: "/system/role",
        element: <Role />,
        label: "角色管理",
      },
      {
        key: "/system/user",
        element: <User />,
        label: "账号管理",
      },
    ],
  },
  {
    key: "/setting",
    element: <Setting />,
    label: "个人设置",
    icon: <AreaChartOutlined />,
  },
];
